<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Record;

class RecordController extends Controller
{
    /**
     * 记录信息接口
     */
    public function recordList(){
       $recordData= Record::get();
       if(empty($recordData)){
           return ['code'=>400,'msg'=>'查询失败','data'=>null];
       }

       return ['code'=>200,'msg'=>'查询成功','data'=>$recordData];
    }

}
